package com.eastfair.common.api;
import com.eastfair.core.base.R;
import com.eastfair.pay.dto.InvoiceTitleDTO;
import com.eastfair.pay.vo.InvoiceTitleVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "mice-pay/invoiceTitle")
public interface InvoiceTitleFeign {

    /**
     * 保存修改
     * @param invoiceTitleDTO
     * @return
     */
    @PostMapping("/saveOrUpdateInvoiceTitle")
    R saveOrUpdateInvoiceTitle(@Validated @RequestBody InvoiceTitleDTO invoiceTitleDTO);

    /**
     * 查询
     * @param invoiceTitleDTO
     * @return
     */
    @PostMapping("/queryInvoiceTitle")
    R<List<InvoiceTitleVO>> queryInvoiceTitle(@RequestBody InvoiceTitleDTO invoiceTitleDTO);
}
